import request from "@/utils/request";

// 查询个体报告
export function listStatAnalysis(query) {
  return request({
    url: "/system/statistical_analysis/individualReport",
    method: "get",
    params: query,
  });
}

// 添加组合
export function addCombination(data) {
  return request({
    url: "/system/statistical_analysis/addCombination",
    method: "post",
    data: data,
  });
}
// 查询组合
// /system/statistical_analysis/{scaleTitle}
export function listCombination(scaleId) {
  return request({
    url:"/system/statistical_analysis/"+scaleId,
    method:'get'
  })
}
//  删除组合
export function delCombination(combinationId) {
  return request({
    url: "/system/statistical_analysis/delete/" + combinationId,
    method: "delete",
  });
}

// 清空组合
export function cleanCombination(scaleId) {
  return request({
    url: "/system/statistical_analysis/remove/" + scaleId,
    method: "delete",
  });
}

// 查询统计分析详细信息
export function getStatAnalysis(scale_id) {
  return request({
    url: "/system/statistical_analysis/" + scale_id,
    method: "post",
  })
}
// 显示所有量表
export function listAllSurvey() {
  return request({
    url: "/system/statistical_analysis/scale_title",
    method: "get",
  })
}
// 显示所有部门名称
export function listAllDept() {
  return request({
    url: "/system/statistical_analysis/dept_name",
    method: "get",
  })
}
